import { ADDTOCAR, ADDTOCARCOUNT, SUBTOCARCOUNT, SWITCHCARSTATE, SWITCHCARSTATEALL } from "../constants/car";

export function addToCarActionCreator(payload) {
	return { type: ADDTOCAR, payload }
}


export function addToCarCountActionCreator(payload) {
	return { type: ADDTOCARCOUNT, payload }
}


export function subToCarCountActionCreator(payload) {
	return { type: SUBTOCARCOUNT, payload }
}

export function switchCarStateActionCreator(payload) {
	return { type: SWITCHCARSTATE, payload }
}




export function switchCarStateAllActionCreator(payload) {
	return { type: SWITCHCARSTATEALL, payload }
}

